Error: The system cannot find...(during XCOPY) (due to long filenames).

Error:


The system cannot find the file specified, or the system cannot find the path specified.

Cause:


The XCOPY command is being used to copy files from a drive that supports only long filenames to a drive supporting only short filenames (e.g., Windows for Workgroups). The file(s) being copied do not conform to the MS-DOS 8.3 naming convention. XCOPY cannot create the file on the destination drive.

Solution:


Rename files or folders, using uppercase 8.3-compliant filenames. Use XCOPY /C to enable files with the correct filename to be copied while skipping those with incorrect filenames. Use XCOPY /N to copy auto-generated short filenames.